
/*
 * 2.	Create a class Term. This class represents a term of a polynomial such
 * as 2x4 where 2 is coefficient and 4 is exponent of the term. There should be
 * two data members; coefficient, and exponent respectively representing
 * coefficient and exponent of a polynomial term.
 * 
 * Create another class Polynomial. The internal representation of a polynomial
 * is an array of Terms. The size of this array should be defined with #define.
 * 
 * Provide a constructor for this class that will set all terms of a polynomial
 * object as zero (coefficient 0, exponent 0).
 * 
 * Provide following functions:
 *  SetTerm(int, int) � Setting a term of a polynomial object. Each successive
 *   call of this function should set next term of the polynomial object. It
 *   should do the following validations.
 *    -> whether the exponent of the term being set is already used.
 *    -> whether the array size limit is exceeded.
 *    -> Whether the exponent is negative.
 *   In all the cases it should not set the term and display an appropriate
 *   message.
 * 
 *  Sort() � to arrange the terms in ascending order of exponents.
 * 
 * Provide a function to print a polynomial object
 */

package array.pgm2;

public class Polynomial {
	Term[] poly;

	public Polynomial(int size) {
		this.poly = new Term[size];
	}

	void SetTerm(int c, int e) {
	}
}
